package com.事件处理event.Google恐龙;

import javax.swing.*;
import java.awt.*;

public class Main extends JFrame {
    public static void main(String[] args) {
        new Main();
    }
    MyPanel mp = null;

    public Main() throws HeadlessException {
        mp  = new MyPanel();
        this.add(mp);
        this.setSize(1605,723);
        this.setDefaultCloseOperation(EXIT_ON_CLOSE);
        this.setVisible(true);
        this.addKeyListener(mp);
    }
}
